import React, { component } from 'react';
class BlogDetail extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            detail: this.props.detail
        }
    }
    render() {
        return (
            <div>
                <h2>{this.state.detail.title}</h2>
                <i>{this.state.detail.time}</i>
                <p>{this.state.detail.content}</p>
            </div>
        )
    }
}
export default BlogDetail